package com.yang.booking.controller;

import com.yang.booking.service.StaffItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class StaffItemController {

    @Autowired
    private StaffItemService staffItemService;

    @PostMapping("/provider/staffItem/insertStaffItem")
    public Map<String, Object> insertStaffItem(@RequestParam(name = "staffIdList") String staffIdList,
                                        @RequestParam(name = "itemIdList") String itemIdList
    ){
        return staffItemService.insertStaffItem(staffIdList, itemIdList);
    }

}
